package com.ssm.service.impl;

import com.ssm.controller.StudentController;
import com.ssm.dao.StudentMapper;
import com.ssm.entity.Student;
import com.ssm.entity.StudentPojo;
import com.ssm.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<Student> selectAll() {
        return studentMapper.selectAll();
    }

    @Override
    public List<Student> selectStudent(StudentPojo studentPojo) {
        return studentMapper.selectStudent(studentPojo);
    }

    @Override
    public int deleteAll(List<String> strings) {
        return studentMapper.deleteAll(strings);
    }


    @Override
    public int insert(Student record) {
        return studentMapper.insert(record);
    }

    @Override
    public int updateByPrimaryKey(Student record) {
        return studentMapper.updateByPrimaryKey(record);
    }

    @Override
    public int falseDeleteIsUpdateState(Integer sid) {
        return studentMapper.falseDeleteIsUpdateState(sid);
    }
}
